<template>
  <div class="el-mr-standturnSearch">
    <ul>
      <li class="el-mr-finreturn-li">
        机型
        <el-select size="mini" v-model="value" placeholder="请选择机型">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.label"
          >
          </el-option>
        </el-select>
      </li>
      <li class="el-mr-parsearch-li">
        图号
        <el-input
          size="mini"
          v-model="pici"
          placeholder="请输入内容"
           
        ></el-input>
      </li>
      <li class="el-mr-parsearch-li">
        质量编号
        <el-input
          size="mini"
          v-model="jiaci"
          placeholder="请输入内容"
           
        ></el-input>
      </li>
      <li class="el-mr-parsearch-li">
        主制单位
        <el-input
          size="mini"
          v-model="tuhao"
          placeholder="请输入内容"
           
        ></el-input>
      </li>
      <li class="el-mr-parsearch-lii">
        接收时间
        <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
        至
        <el-date-picker size="mini" v-model="value2" type="date" placeholder="选择日期"></el-date-picker>
        <el-button size="mini" type="primary" style="margin-left:10px" @click="partReturnSearch">查询</el-button>
      </li>
    </ul>
  </div>
</template>
<script>
import { standardSearch } from "@/utils/api.js"
export default {
  name: "StandturnSearch",
  data() {
    return {
        options: [
        {
          value: "选项1",
          label: "歼十",
        },
        {
          value: "选项2",
          label: "歼十",
        },
      ],
      value: "",
      pici: "",
      jiaci: "",
      tuhao: "",
      value1:"",
      value2:""
    };
  },
  methods:{
    // 查询按钮
    partReturnSearch(){
      // console.log(this.value1)
      standardSearch({
          startTime:this.value1,
          endTime:this.value2,
          PageParameter: {
            rows: this.pageSize,
            page: this.pageNumber,
          },
      }).then((res) => {
        console.log('标准件退货search',res)
        // 接口返回数据还未进行分页处理 返回的全部12条数据
        // 将res表格数据传给Table
        this.$bus.$emit('standardReturnSearch',res.data.responseBody)
      });
     }
  }
};
</script>
<style scoped>
.el-mr-standturnSearch ul li {
  height: 35px;
  float: left;
  margin-right: 20px;
  line-height: 35px;
  font-size: 14px;
}
.el-select {
  width: 110px;
}
.el-input {
  width: 130px;
}

</style>